#pragma once
#include <QDialog>
#include "ui_oil_model_editor.h"

class OilModel;

class OilModelEitor : public QDialog
{
	Q_OBJECT
private:
	Ui::OilModelEitorDialog ui;
	sim *main;
	void setModel(PropertiesModel *model);
	vector<OilModel*> oilModelList;
public:
	OilModelEitor(sim *_main = 0);	
	~OilModelEitor();
	void setData(vector<OilModel*> _oilModelList, int _index);
	vector<OilModel*> getData();
	int getIndex();
private slots:
	void on_bAdd_clicked();
	void on_bRemove_clicked();
	void on_bUse_clicked();
	void displayOilModel(int index);
};

